-- GENERATED SPELL FOR [Mosshide Trapper] --


function spell0_1011(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1011', 2298, 1)
end

function Sorts_1011(pUnit, Event)
local choix_sorts_1011 = math.random(0, 0)
if choix_sorts_1011 == 0 then
pUnit:RegisterEvent('spell0_1011', 1, 1)
end
end

function mob1011_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1011', math.random(1500, 3000), 1)
end

function mob1011_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1011_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1011_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1011, 1, 'mob1011_Action')
RegisterUnitEvent(1011, 2, 'mob1011_Leave')
RegisterUnitEvent(1011, 3, 'mob1011_Kill')
RegisterUnitEvent(1011, 4, 'mob1011_Die')
